package com.android.ripplewave;

import android.app.Activity;
import android.os.Bundle;
import android.view.WindowManager;
import android.view.Window;
// import android.util.DisplayMetrics;

public class RippleWaveDemo extends Activity
{
	RippleWaveSurfaceView ripplewavesurfaceview;
	// RippleWaveView ripplewaveview;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		// DisplayMetrics displaymetrics = new DisplayMetrics();
        // getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
		// ripplewavesurfaceview = new RippleWaveSurfaceView(this, displaymetrics.widthPixels, displaymetrics.heightPixels);
		
		// ripplewaveview = new RippleWaveView(this);
		// ripplewaveview.Initalize();		
		// setContentView(ripplewaveview);
		
		ripplewavesurfaceview = new RippleWaveSurfaceView(this);
		setContentView(ripplewavesurfaceview);
		
        // setContentView(R.layout.main);
    }
	@Override
	public void onStop(){		
		super.onStop();
		// ripplewaveview.Destroy();
		RippleWaveDemo.this.finish();
	}
	@Override
	public void onBackPressed(){
		super.onBackPressed();
		// ripplewaveview.Destroy();
        RippleWaveDemo.this.finish();
	}
}
